package com.magicode.cms.dao.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.magicode.cms.dao.IEnterpriseFestivalRelaDao;
import com.magicode.cms.entiy.base.EnterpriseFestivalRela;

@Service("daoenterpriseFestivalRela")
public class EnterpriseFestivalRelaDaoImpl extends BaseDaoImpl<EnterpriseFestivalRela> implements IEnterpriseFestivalRelaDao {

	@Override
	public void deleteEnterpriseFestivalRelalist(String id) {
		String hql = " from "+EnterpriseFestivalRela.class.getName()+" t " +
				"  where  t.festival.id = '"+id+"' ";
		List<EnterpriseFestivalRela> vphs = commonDaoService.getListByHQL(hql);
		commonDaoService.deleteAll(vphs);
	}

}
